package com.example.aicloud.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.aicloud.entity.Discuss;
import com.example.aicloud.mapper.DiscussMapper;
import com.example.aicloud.service.DiscussService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * (Discuss)表服务实现类
 *
 * @author makejava
 * @since 2024-07-14 20:05:25
 */
@Service("discussService")
public class DiscussServiceImpl extends ServiceImpl<DiscussMapper, Discuss> implements DiscussService {
    @Resource
    private DiscussMapper discussMapper;

    @Override
    public int updateReadCount(Long did) {
        return discussMapper.updateReadCount(did);
    }

    @Override
    public int updateSupportCount(Long did) {
        return discussMapper.updateSupportCount(did);
    }
}

